<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"  %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath %>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>postMessage2</title>

<link type="text/css" rel="stylesheet" href="css/postMessage2.css" />
<link href="ckeditor/_samples/sample.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="/jxsdmarket/js/autoInsert.js"></script>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script src="ckeditor/_samples/sample.js" type="text/javascript"></script>

</head>

<body>
	<div id="container">
	
		<div id="navi_container">
			<!--这里是navigation的顶部栏-->
			<div id="navi_top">
				<div class="navi_left">南昌站</div>
				<div class="navi_left">网页版</div>
				
				<div class="navi_right">推广使用</div>
				
				
			<c:choose>
               <c:when test="${sessionScope.nickName==null}">
               <div class="navi_right"><a href="#">注册</a></div>
               <div class="navi_right"><a href="user/login_queryLoginPage.action">登录</a></div>
               </c:when>                 
          	  <c:otherwise>
          	  
          	  <div class="navi_right"><a  href="user/PersonSpace_queryMsgStore.action">我的收藏</a></div>
          	  <div class="navi_right"><a href="user/login_doLogout.action">注销</a></div>
          	  <div class="navi_right"><a target="right" href="user/PersonSpace_queryLabelMsg.action">欢迎${sessionScope.nickName}</a></div>
          	 </c:otherwise>
        	</c:choose>
        	
        	
			</div>
			
	 
			<!--这里是navigation导航栏-->
			<div id="navigation">
			    <div id="logo"><a href="#"><img src="img/logo.png" width="220" height="70" border="0"/></a></div>
				
				<a href="index.action"><div class="navigator">首页</div></a>
				<c:forEach  var="catagory"  items="${list}">
				   <a href="user/publish_queryCataSecondList.action?catagoryId=${catagory.catagoryID}"><div class="navigator">${catagory.catagoryName}</div></a>
				</c:forEach>
			</div>
			<!--这里是navigation导航栏-->
		</div>
		
		<div id="step">
			<div class="step1">选择类目</div>
			<div class="step2">填写信息</div>
			<div class="step3">发布成功</div>
		</div>
		
		<!-- 这里是loading -->
		<div id="loading">
			<img src="/jxsdmarket/img/loading.gif" style="margin:0 auto" />
		</div>
		<!-- 这里是loading -->
		
		
	  	<div id="content">
		

			<!--这里开始是属性值和属性名-->
			<div style="margin-top:30px; margin-bottom:50px;">
			<form action="user/publish_publishMsg.action?pubMsg.smallName=${pubMsg.smallName}&pubMsg.catagoryName=${pubMsg.catagoryName}&pubMsg.smallId=${pubMsg.smallId}"    method="post"    enctype="multipart/form-data">
				


            <c:forEach  var="attri"  items="${attris}"  varStatus="s">
                <div class="line">
					<div class="dis">
						  <label id="attrName">
							 <font color="red">*</font>
							${attri.attributeName}
						  </label>
					</div>
					<div class="right">
						 <input type="text"  id="${s.index}" class="smallCat" value="" name="${attri.attributeName}"/>
					</div>
				</div>
            </c:forEach>

			<div class="line">
					<div class="dis">
						  <label>
							 <font color="red">*</font>
							 标题:
						  </label>
					</div>
					<div class="right">
						 <input type="text" class="smallCat"  name="pubMsg.title"/>
					</div>
				</div>

				 
				 
				<div class="line">
					<div class="dis">
						  <label>
							 <font color="red">*</font>
							封面
						  </label>
					</div>
					<div class="right">
						 <input type="file" name="cover"/>
					</div>
				</div>
				
				
				<div class="line">
					<div class="dis">
						<label>
							<font color="red">*</font>
							联系方式
						</label>
					</div>
					<div class="right">
						<input type="text" style="width:300px;"  name="pubMsg.telephone"/>
					</div>
				</div>		
										
			</div>
			<!--这里开始是属性值和属性名-->
			
			<!--这里开始使用ck编辑器-->
			<textarea class="ckeditor" cols="80" id="editor1" name="pubMsg.describes" rows="10">
				亲，记得多夸夸自己的宝贝哦！
			</textarea>
			<!--这里开始使用ck编辑器-->
			<br />
			<div style="margin-left:400px;">
					<input type="submit" value="确定"/>
					<input type="reset" value="取消"/>
			</div>
			</form>
			<br />
		</div>
		
		<div style=" width:100%;border-bottom:2px solid #6eb205"></div>
		<div id="footer">copyright &copy; 江西师范大学 Evan &amp; ZTS</div>
	</div>
</body>
</html>
